<template>
  <div>
    <el-row>
      <el-button type="success" @click="find" plain>查询交易明细</el-button>
      <el-button type="success" @click="statement" plain>统计</el-button>
      <el-button type="info" @click="returnIndex" plain>返回</el-button>
    </el-row>
    <el-table
        :data="tableData"
        stripe
        style="width: 100%">
        <el-table-column
          prop="id"
          label="编号"
          width="180">
        </el-table-column>
        <el-table-column
          prop="account"
          label="账号"
          width="180">
        </el-table-column>
        <el-table-column
          prop="info"
          label="信息">
        </el-table-column>
      </el-table>
  </div>
</template>

<script>
  export default{
    name:"FindAndStatement",
    data(){
      return{
        tableData:[]
      }
    },
    methods:{
      find(){
        this.$axios.post("/find")
        .then(res=>{
          this.tableData = res.data.list
        })
      },
      statement(){

      },
      returnIndex(){
        this.$router.push("/")
      }
    }

  }
</script>

<style>
</style>
